package com.dabbo.starship.app.text.client;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
import com.dabbo.starship.interfaces.Container;


public class TestLoad {

	public static void main(String[] args) {
		
		Container cp = null;
		
		System.out.println("Loading object from file...");
		try {
			FileInputStream fin = new FileInputStream("d:\\object.out");
			ObjectInputStream ois = new ObjectInputStream(fin);   
			cp = (Container) ois.readObject();
			ois.close();
			
			//System.out.println("Center cell is : " + cp.getBlock(1, 1).getDescription());
			System.out.println("Power is : " + cp.getPowerOutput());
		} catch (Exception ex) {
			System.out.println("Failed.");
		}

		System.out.println("Done.");

	}

}
